Trò chơi đua xe động vật trong UNITY Engine
114.788 lượt xem;
- TitleLevel.cs
- LevelScreen /
- AnimalRacing /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class TitleLevel : MonoBehaviour {
5
6 public Sprite[] sprites;
7
8 public void Start()
9 {
10 gameObject.GetComponent<SpriteRenderer>().sprite = sprites[Attr.currentWorld];
11 }
12
13 }
2 using System.Collections;
3
4 public class TitleLevel : MonoBehaviour {
5
6 public Sprite[] sprites;
7
8 public void Start()
9 {
10 gameObject.GetComponent<SpriteRenderer>().sprite = sprites[Attr.currentWorld];
11 }
12
13 }